package com.example.soa2.entity;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class UserDTO {
    private String name;
    @NotBlank(message = "sex can't be empty")
    private String sex;
    @NotBlank(message = "age can't be empty")
    private int age;
    @NotBlank(message = "identity can't be empty")
    private String identity;
    @NotBlank(message = "telephone can't be empty")
    private String telephone;
    @NotBlank(message = "message can't be empty")
    private String email;
}
